//
//  ZhouBianViewController.m
//  LoLBox
//
//  Created by lanou3g on 15/6/1.
//  Copyright (c) 2015年 lanou3g. All rights reserved.
//

#import "ZhouBianViewController.h"

@interface ZhouBianViewController ()

@end

@implementation ZhouBianViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    // Do any additional setup after loading the view.
    [self sendWebView];
    
    [self settings];
}
-(void)settings
{

    UIBarButtonItem * left = [[UIBarButtonItem alloc]initWithBarButtonSystemItem:UIBarButtonSystemItemReply target:self action:@selector(way)];
    
    self.navigationItem.leftBarButtonItem = left;

    self.navigationItem.title =@"官方论坛";
}

-(void)way
{
    [self.navigationController popViewControllerAnimated:YES];
    
    
}

-(void)sendWebView
{
    UIWebView * web = [[UIWebView alloc]initWithFrame:self.view.bounds];
    
    NSURLRequest * request = [[NSURLRequest alloc]initWithURL:[NSURL URLWithString:@"http://map.baidu.com"] cachePolicy:NSURLRequestUseProtocolCachePolicy timeoutInterval:60.0];
    
    [web loadRequest:request];
    
    [self.view addSubview:web];
    
}

- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

/*
#pragma mark - Navigation

// In a storyboard-based application, you will often want to do a little preparation before navigation
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
    // Get the new view controller using [segue destinationViewController].
    // Pass the selected object to the new view controller.
}
*/

@end
